//
//  XQTableHeaderView.m
//  JoinPeso
//
//  Created by 小琦 on 2024/11/25.
//

#import "XQTableHeaderView.h"

@interface XQTableHeaderView()
@property (nonatomic,strong) UILabel *contentLb;
@end

@implementation XQTableHeaderView

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self makeUI];
        [self makeConstraints];
    }
    return self;
}

- (void)makeUI {
    self.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.contentLb];
}

- (void)makeConstraints {
    [self.contentLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@20);
        make.top.equalTo(@0);
        make.right.equalTo(@0);
        make.height.mas_equalTo(@22);
        make.bottom.equalTo(@-10);
    }];
}

#pragma mark - setter

- (void)setContent:(NSString *)content {
    self.contentLb.text = content;
}

#pragma mark - lazy

- (UILabel *)contentLb {
    if (!_contentLb) {
        _contentLb = [[UILabel alloc] init];
        _contentLb.textColor = kBlackTextColor;
        _contentLb.font = [UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
    }
    return _contentLb;
}

@end
